#ifndef SHUI_DRAWINGDESIGNER_H
#define SHUI_DRAWINGDESIGNER_H

#include <QtGui/QMainWindow>
#include "tool/defines.h"

namespace ShUi
{

class FormManager;
class DrawingSurface;
class DrawingDesignerImpl;
class DrawingDesigner : public QMainWindow
{
    Q_OBJECT
public:
    DrawingDesigner();
    ~DrawingDesigner();

    DrawingSurface* surface() const;

    FormManager* formManager() const;
    void present();

    void setFullscreen(bool fullscreen);
    bool isFullscreen() const;

protected:
    void contextMenuEvent(QContextMenuEvent* evt);

private slots:
    void onCommandIssued(const QString& command);

private:
    SH_DISABLE_COPY(DrawingDesigner);
    SH_DECLARE_IMPL(DrawingDesigner);
};

} // namespace ShUi

#endif // SHUI_DRAWINGDESIGNER_H
